<?php
	$where_item = "";
	if(isset($_GET['var2']))	$where_item = " where titleurl = '".$_GET['var2']."' ";
	
	$re_item = $db->select("select * from about_item $where_item  order by orderId asc, id asc limit 1 ");
	$tt_item = $db->fetch($re_item);
?>
<div class="w260 mr20">
	<div class="title fsize17">Danh mục</div>
	<ul class="pl-list">
		<?php
		$re_list = $db->select("select * from about_item order by orderId asc ");
		while($tt_list = $db->fetch($re_list))
		{
			if($act=="intro" && $tt_list['id'] == $tt_item['id'])
				$subClass = "active";
			else
				$subClass = "";
		?>
		<li class="<?=$subClass?>">
			<a href="<?=APPLICATION_URL?>intro/<?=$tt_list['titleurl']?>.html"><?=$tt_list['title'.$hg]?></a>
			<div class="clear"></div>
		</li>		
		<?php
		}
		?>		
	</ul>
	<div class="title fsize17 mt40">Tin tức</div>
	<ul class="s-list">
		<?php
        $sql_list = "select * from news_item  order by orderId, id desc limit 3";
        $qr_list = $db->select($sql_list);

        while ($tt_list = $db->fetch($qr_list)) {			
		?>
		<li>
			<a href="<?= APPLICATION_URL ?>news-detail/<?= $tt_list['titleurl'] ?>.html"><img class="image new3" src="<?= APPLICATION_URL ?>news-img/<?= $tt_list['image'] ?>" /></a>
			<div class="title-red"><a href="<?= APPLICATION_URL ?>news-detail/<?= $tt_list['titleurl'] ?>.html"><?= $tt_list['title' . $hg] ?></a></div>
			<div class="desc">
				<?= $tt_list['description' . $hg] ?>
			</div>
			<div class="clear"></div>
		</li>
		<?php
		}
		?>
	</ul>
</div>
<div class="w700">
	<div class="title">Giới thiệu</div>
	<div class="intro content-text">
		<div class="sub-title">
			<?=$tt_item['title'.$hg]?>
		</div>
		<div class="text">
			<?=$tt_item['content'.$hg]?>
		</div>
	</div>
</div>
